package mk.game.key
{
	import Lii.FTG.Key.KeyCatch;
	
	import flash.display.Stage;
	import flash.events.EventDispatcher;
	import flash.ui.Keyboard;
	
	public class KeyCenter extends EventDispatcher
	{
		public var myKeyCatch:KeyCatch
		public var keyCtrl1:KeyController
		
		public function KeyCenter(stage:Stage)
		{
			myKeyCatch=new KeyCatch(stage,20);
			init()
		}
		
		private function init():void{
			setPlayer1();
			
		}
		
		public function setPlayer1():void{
			keyCtrl1=new KeyController(myKeyCatch);
			keyCtrl1.setCrossKeys(87,83,65,68);
			keyCtrl1.setAtkKeys(74,75,76,186);
		}
		
	}
}